import { SELECTED_BANK_DATAS } from "../../Action/selectedBankDatas/selectedBankDatas";
import objectAssign from "object-assign";
const initData = {
	code: "", //银行卡唯一标识，
	accountNo: "", // 银行卡后四位,
	accountName: "", //持卡人姓名,
	bankName: "", //所属银行,
	maxAmount: "", //限额（分），
	bankCode: "" //银行code
};
//记录商品列表页数据状态
const selectedBankDatas = (state = initData, action = {}) => {
	switch (action.type) {
		case SELECTED_BANK_DATAS:
			return objectAssign({}, state, action.options);

		default:
			return state;
	}
};
export default selectedBankDatas;
